<template>
<div class="container">
    <div class="item">
      <img :src="data.img" alt="">
      <div class="text">{{data.title}}</div>
    
  </div>
</div>
</template>

<script>
export default {
  props:{
    data:{
      type:Object
    }
  },

}
</script>

<style>
  .item{
    width: 150px;
    height: 180px;
    margin-bottom: 15px;
}
.item img{
    width: 150px;
    height: 160px;
}
.container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.text{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
</style>